<T:ViewBase x:Class="WPFExcelReport.TYGRCS"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Name="TV"
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/> 
        <ucd:Divideby1000  x:Key="d1000"/> 
        <ucd:PNumConverter  x:Key="pnum"/> 
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                  AutoGenerateColumns="False" 
                  EnableRowVirtualization="False" 
                  Name="dlgMaster"
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster }}" 
                  HeadersVisibility="Column"  CanUserReorderColumns="True" CanUserResizeRows="True"  
                  RowDetailsVisibilityMode="VisibleWhenSelected"
                  Width="Auto" Height="Auto" 
                  EnableColumnVirtualization="True" 
                  HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=ROWNID}" Header="{Binding Source={Localization:Translate Word=ID}}" MinWidth="20" />
                <DataGridTextColumn Binding="{Binding Path=PLANID}" Header="{Binding Source={Localization:Translate Word=PLANID}}" Width="Auto" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=RGROUP}" Header="{Binding Source={Localization:Translate Word=计划组}}" Width="Auto"  />
                <DataGridTextColumn Binding="{Binding Path=RULEID}"  Header="{Binding Source={Localization:Translate Word=RULEID}}" Width="Auto" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=WMIN}" Header="{Binding Source={Localization:Translate Word=数量范围}}" Width="Auto"   />
                <DataGridTextColumn Binding="{Binding Path=WMAX}" Header=" " Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=YARNTYP}" Header="{Binding Source={Localization:Translate Word=纱线类型}}" Width="Auto"/>
                <DataGridTextColumn Binding="{Binding Path=WASTAGE}" Header="{Binding Source={Localization:Translate Word=损耗}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=REMARK}" Header="{Binding Source={Localization:Translate Word=备注}}" Width="Auto"/>
             </DataGrid.Columns>
        </DataGrid>
    </Grid>
</T:ViewBase>
